#ifndef COMPILER_ONLINE
#include "./header.cpp"
#endif

void Test1()
{
    vector<int> v = {2,7,11,15};
    int target = 9;

    vector<int> ret;
    vector<int> tv = {0,1};
    ret = Solution().twoSum(v,target);
     if(ret == tv){
        std::cout << "通过用例1" << std::endl;
    }
    else{
        std::cout << "没有通过用例1"  << std::endl;
    }

}

void Test2()
{
    vector<int> v = {3,2,4};
    int target = 6;

    vector<int> ret;
    vector<int> tv = {1,2};
    ret = Solution().twoSum(v,target);
     if(ret == tv){
        std::cout << "通过用例2" << std::endl;
    }
    else{
        std::cout << "没有通过用例2"  << std::endl;
    }

}

int main()
{
    Test1();
    Test2();
    return 0;
}